let formDate = (val) => {
	if(!val) {
		return;
	}

	let date = new Date(val)
	let [Y, M, D, h, m, s] = [date.getFullYear(), date.getMonth() + 1, date.getDate(), date.getHours(), date.getMinutes()]
	let str = `${Y}:${M>9? M : '0'+M}:${D>9?D:'0'+D}  ${h>9?h:'0'+h}:${m>9?m:'0'+m}`
	return(str);
}
let formDateYear = (val) => { //年
	if(!val) {
		return;
	}

	let date = new Date(val)
	let [Y, M, D] = [date.getFullYear(), date.getMonth() + 1, date.getDate()]
	let str = `${Y}.${M>9? M : '0'+M}.${D>9?D:'0'+D}`
	return(str);
}
let formDate1 = (data) => {
	return 1;
}
export default {
	formDate,
	formDate1,
	formDateYear
}